﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="kcgl.aspx.cs" Inherits="Account_kcgl_kcgl" EnableEventValidation="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-top:10px">&nbsp;
    <asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcdd.aspx" CssClass="btn01">考试地点设置</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink3" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/zykc.aspx" CssClass="btn01">专用考场指定</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink4" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcy.aspx" CssClass="btn01">考场预安排</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink5" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcgl.aspx" ForeColor="Red" CssClass="btn01">考场管理</asp:HyperLink>
    </div>
<div style=" margin:10px auto; font-size: x-large; font-weight: bold; color: #666666;" 
        align="center">
        考场管理
&nbsp;
<p style="font-size: small">&nbsp; &nbsp;</p>
</div>
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
        CssClass="eDataTable" Width="100%" onrowdatabound="GridView2_RowDataBound" 
        AllowPaging="True" 
    BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" GridLines="Vertical" 
        onpageindexchanging="GridView2_PageIndexChanging">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" Width="5%" />
            </asp:TemplateField>
            <asp:BoundField DataField="subjectNo" HeaderText="科目编号">
            <HeaderStyle HorizontalAlign="Left" Width="7%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="考场编号">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="" 
                        Text='<%# Eval("classNo") %>'>
                         </asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" Width="7%" />
            </asp:TemplateField>
            <asp:HyperLinkField DataTextField="place" HeaderText="考试地点" 
                DataNavigateUrlFields="subjectNo,classNo,place" 
                
                DataNavigateUrlFormatString="stuinfo2.aspx?subjectNo={0}&amp;classNo={1}&amp;place={2}" 
                DataTextFormatString="{0}">
            <HeaderStyle HorizontalAlign="Left" Width="15%" />
            </asp:HyperLinkField>
            <asp:BoundField HeaderText="可考人数" DataField="maxNum">
            <HeaderStyle HorizontalAlign="Left" Width="7%" />
            </asp:BoundField>
            <asp:BoundField HeaderText="实考人数" DataField="realNum">
            <HeaderStyle HorizontalAlign="Left" Width="7%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="考试科目">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:DataList ID="DataList1" runat="server">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("subName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="报考专业">
                <ItemTemplate>
                    <asp:DataList ID="DataList2" runat="server">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("proName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="专业实考人数">
                <ItemTemplate>
                    <asp:DataList ID="DataList3" runat="server">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("realNum") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:DataList>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
        <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'/>页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO"/>
            </PagerTemplate>
    </asp:GridView>
    <div>
        <table class="style1">
            <tr>
                <td width="8%">
                    科目编号：</td>
                <td width="20%">
                    <asp:DropDownList ID="DropDownList1" runat="server" CssClass="eDataTable">
                        <asp:ListItem>-请选择-</asp:ListItem>
                        <asp:ListItem Value="1">考试科目一</asp:ListItem>
                        <asp:ListItem Value="2">考试科目二</asp:ListItem>
                        <asp:ListItem Value="3">考试科目三</asp:ListItem>
                        <asp:ListItem Value="4">考试科目四</asp:ListItem>
                    </asp:DropDownList>
&nbsp;考场号：<asp:DropDownList ID="DropDownList2" runat="server" CssClass="eDataTable">
                    </asp:DropDownList>
                </td>
                <td width="5%">
                    <asp:Button ID="Button1" runat="server" CssClass="btn01" Text="查询" 
                        onclick="Button1_Click" />
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" CssClass="btn01" Text="导出考场安排" 
                        onclick="Button2_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

